package com.lu.stack.nacos.feign;

import com.lu.stack.common.model.response.R;
import com.lu.stack.common.model.constants.SystemApplication;
import com.lu.integrate.message.center.model.domain.MessageCenterQueueMessageDo;
import com.lu.stack.nacos.feign.fallback.FeignToArticleFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description
 * @date 2023/2/1 22:48
 */
@FeignClient(name = SystemApplication.LU_STACK_NACOS, path = "/test", fallback= FeignToArticleFallback.class)
public interface FeignToArticle {

    @GetMapping("/t2")
    Object t2();

    @GetMapping("/t5")
    R t5();

    @PostMapping("/t6")
    R t6(@RequestBody MessageCenterQueueMessageDo message);

}
